import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com/')
driver.find_element(By.ID, 'kw').send_keys('测试人社区')
driver.find_element(By.ID, 'su').click()
time.sleep(5)
assert driver.title == "测试人社区_百度搜索"
